<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('新增日报')" />
	<th:block th:include="include :: select2-css" />
</head>
<style>
    #sstatus{
        height: 30px;
        width: 100%;
        font-size: 14px;
        box-shadow: none;
        background: #FFFFFF none;
        border: 1px solid;
        border-radius: 4px;
    }
</style>
<body>
    <div class="main-content">
        <div class="wrapper wrapper-content animated fadeInRight ibox-content">
            <form id="form-report-add" class="form-horizontal m" th:object="${addReport}">
                <input name="deptId" type="hidden" id="treeId"/>
                <h4 class="form-header h4">新增日报</h4>
                <div class="row">
                        <div class="form-group">
                            <label class="col-sm-2 control-label is-required">名字：</label>
                            <div class="col-sm-10">
                                <input name="staffName" placeholder="请输入名字" class="form-control" type="text" maxlength="30" id="sname" th:field="*{staffName}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">岗位：</label>
                            <div class="col-sm-10">
                                <input name="staffStation" placeholder="请输入岗位" class="form-control" type="text" maxlength="30" id="sstaion" th:field="*{staffStation}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">在位情况：</label>
                            <div class="col-sm-10">
                                <select name="staffStatus" id="sstatus">
                                    <option value="">请选择在位情况</option>
                                    <option value="在岗" selected="true">在岗</option>
                                    <option value="出差">出差</option>
                                    <option value="请假">请假</option>
                                    <option value="调休">调休</option>
                                </select>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-12">
                                <div class="form-group">
                                    <label class="col-xs-2 control-label">今日计划：</label>
                                    <div class="col-xs-10">
                                        <textarea name="todayPlan" maxlength="500" class="form-control" rows="5"></textarea>
                                    </div>
                                </div>
                            </div>
                        </div>
                </div>
            </form>
        </div>
    </div>
      
    <div class="row">
        <div class="col-sm-offset-5 col-sm-10">
            <button type="button" class="btn btn-sm btn-primary" onclick="submitHandler()"><i class="fa fa-check"></i>保 存</button>&nbsp;
            <button type="button" class="btn btn-sm btn-danger" onclick="closeItem()"><i class="fa fa-reply-all"></i>关 闭 </button>
        </div>
    </div>
	<th:block th:include="include :: footer" />
	<th:block th:include="include :: select2-js" />
	<script>
	    var prefix = ctx + "system/report";

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-report-add').serialize());
            }
        }
    </script>
</body>
</html>